package event
{
	import flash.display.DisplayObject;
	import flash.display.LoaderInfo;
	import flash.events.Event;
	
	public class ResEvent extends Event
	{
		private var _resource:DisplayObject = null;
		
		private var _resourceId:String;
		
		public function ResEvent(type:String, res:DisplayObject)
		{
			super(type, false, false);
			
			_resourceId = type;
			
			_resource = res;	
		}
		
		public function get resourceId():String
		{
			return _resourceId;
		}

		public function get resource():DisplayObject
		{
			return _resource;
		}
		
		public override function clone():Event
		{
			return new ResEvent(type, _resource);
		}
	}
}